<%@ page contentType="text/html;charset=UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="tags" tagdir="/WEB-INF/tags" %>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>

<html>
<head>
    <title>已发证</title>
    <script type="text/javascript" src="${ctx}/static/myJs/util.js"></script>
    <link href="${ctx}/static/datetimepicker/bootstrap/css/bootstrap-datetimepicker.min.css" rel="stylesheet"
          media="screen">
    <script type="text/javascript" src="${ctx}/static/datetimepicker/jquery/bootstrap-datetimepicker.js"
            charset="UTF-8"></script>
    <script type="text/javascript" src="${ctx}/static/datetimepicker/jquery/locales/bootstrap-datetimepicker.zh-CN.js"
            charset="UTF-8"></script>
</head>

<body>
<div class="content">
    <div class="page-subcate-list">
        <div class="page-subcate-item">
            <label>护照编号</label>
            <div class="form-item">
                <input type="text" class="form-control" id="passportNO" placeholder="" value="">
                <div class="pull-right">
                    <button onclick="javascript:search();" class="pull-left btn">查询</button>
                </div>
            </div>
        </div>
    </div>
    <table class="table table-bordered">
        <thead>
        <tr>
            <th>订单编号</th>
            <th>订单类型</th>
            <th>申请方式</th>
            <th>发证时间</th>
            <th>姓名</th>
            <th>护照编号</th>
        </tr>
        </thead>
        <tbody>
        <c:forEach items="${data.content}" var="item" varStatus="status">
            <tr id="${item.num}">
                <td>${item.num}</td>
                <td>
                    <c:if test="${item.applyType == 10}">首次</c:if>
                    <c:if test="${item.applyType == 20}">换发</c:if>
                    <c:if test="${item.applyType == 30}">补发</c:if>
                </td>
                <td>
                    <c:if test="${item.applyForm == 1}">在线</c:if>
                    <c:if test="${item.applyForm == 2}">现场</c:if>
                </td>
                <td>${item.signDate}</td>
                <td>${item.name}</td>
                <td>${item.passportNO}</td>
            </tr>
        </c:forEach>
        </tbody>
    </table>
    <tags:pagination page="${data}" paginationSize="10"/>
</div>

<script type="text/javascript">
    $(function(){//已发证
        $("[href='#asideCollapse4']").click();//展开公益护照管理
        $("#asideCollapse4 li:eq(2) a").css({"background-color":"#30c9a0","color":"#fff"});
        $("#asideCollapse4 li:eq(2) a").mouseover(function(){
            $(this).css({"background-color":"#30c9a0"})
        });
    })
    function search()
    {
        var passportNO = $('#passportNO').val();
        window.location.href="${ctx}/passport/sendOK/search?passportNO="+passportNO;
    }
</script>
</body>

</html>
